package cn.et.test.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.et.test.entity.Food;
import cn.et.test.entity.FoodExample;
import cn.et.test.mapper.FoodMapper;
import cn.et.test.service.LuceService;
@Service
public class LuceServiceImpl implements LuceService{
	@Autowired
	FoodMapper fm;
	//获取Food表的所有数据
	public List<Food> query() {
		FoodExample fe= new FoodExample();
		List<Food> li= fm.selectByExample(fe);
		return li;
	}

}
